import re,urllib2,urllib,json


#url = "http://www.tv5mondeplus.com/video/03-03-2012/le-jt-des-nouvelles-technos-03032012-225498"
 
#req = urllib2.Request(url)
#req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3 Gecko/2008092417 Firefox/3.0.3')
#response = urllib2.urlopen(req)
#link=response.read()
#response.close()
#match=re.compile('<li .+?><a href="(.+?)" ><strong>(.+?)</strong></a>.+?</li>').findall(link)
#print link



# decode JSON

url =  'http://www.tv5mondeplus.com/get/videos?start=0&type=genre&sort=28'
u = urllib2.urlopen(url)

jsonString =  json.load(u)

uu = unicode(jsonString, "utf-8" )
backToBytes = uu.encode( "utf-8" )



print backToBytes
u.close()







